<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>欢迎来到ECLink资产管理系统</title>
</head>
<body>
    <script>
        function isMobile() {
            const userAgentInfo = navigator.userAgent;
            const mobileAgents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"];
            const mobileFlag = mobileAgents.some((mobileAgent) => {
                return userAgentInfo.indexOf(mobileAgent) > 0;
            });

            return mobileFlag;
        }
        debugger

        function goMobile() {
            window.location.href = '/mobile'
        }

        function goPC() {
            window.location.href = '/pc'
        }

        isMobile() ? goMobile() : goPC();

    </script>
</body>
</html>